package org.yogthos;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class ListActivity extends Activity {
	private ListView lView;
	private String lv_items[] = { "Android", "iPhone", "BlackBerry",
			"AndroidPeople", "J2ME", "Listview", "ArrayAdapter", "ListItem",
			"Us", "UK", "India" };

	@Override
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		setContentView(R.layout.list);
		lView = (ListView) findViewById(R.id.ListView01);
		// Set option as Multiple Choice. So that user can able to select more
		// the one option from list
		lView.setAdapter(new ArrayAdapter<String>(this,
				android.R.layout.simple_list_item_multiple_choice, lv_items));
		lView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
	}
}
